﻿
namespace SHomeWorkshop.LunarPresentation.Commands
{
    public partial class Command
    {
        public static void ScrollToHome()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.ScrollToHome();
        }

        public static void ScrollToEnd()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.ScrollToEnd();
        }

        public static void PageDown()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.PageDown();
        }

        public static void PageUp()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.PageUp();
        }

        public static void PageLeft()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.PageLeft();
        }

        public static void PageRight()
        {
            if (Globals.selectedEditor == null) return;
            Globals.selectedEditor.BaseScrolledViewer.PageRight();
        }
    }
}
